package com.xxgc.eow.mapper;

import com.xxgc.eow.entity.Article;
import com.xxgc.eow.entity.Likearticle;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 点赞文章表 Mapper 接口
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-25
 */
@Mapper
public interface LikearticleMapper extends BaseMapper<Likearticle> {
    int insertLikeArticle(Likearticle likearticle);

    Integer getArticleById(int articleId);

    int updateArticleLike(@Param("articleId") int articleId,@Param("likeNum") int likeNum);

    int delLikeArticle(Likearticle likearticle);

    Likearticle selectTfData(Likearticle likearticle);

}
